package com.xuan.yrmanage.common.exception;


import com.xuan.yrmanage.common.response.ResultCode;

/**
 * FileName: ExceptionCast
 * Author:   xuan zongjun
 * Date:     2020/2/26 8:52
 * Description: 统一异常抛出类
 */


public class ExceptionCast {

    //使用此静态方法抛出自定义异常
    public static void cast(ResultCode resultCode) {
        throw new CustomException( resultCode );

    }
}
